package org.example.infrastructure.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.infrastructure.dao.po.GroupBuyActivity;

import java.util.List;
@Mapper
public interface IGroupBuyActivityDao {
    List<GroupBuyActivity> queryGroupBuyActivityList();

    Boolean addGroupBuyActivity(GroupBuyActivity groupBuyActivity);

    //查询有效的活动配置
    GroupBuyActivity queryValidGroupBuyActivity(GroupBuyActivity groupBuyActivity);
//通过活动id查询，2-6新增
    GroupBuyActivity queryValidGroupBuyActivityId(Long activityId);


    GroupBuyActivity queryGroupBuyActivityByActivityId(Long activityId);
}
